#ifndef __USER_H__
#define __USER_H__

#include "timer.h"
#include "alarm.h"

typedef struct _user_socket{
    int sock;
    char* username;
    int exit;
    
    timer* login_timeout_timer;   

    device_alarm_list alarm_list;

    int alarm_sample_flag;
}user_socket;


user_socket* create_user(void);
void add_to_user_array(user_socket* p_user,char* username);
void del_from_user_array(user_socket* p_user);
void* user_thread(void* param);
#endif // !__USER_H__